package grad.nxu.recruitsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import grad.nxu.recruitsystem.domain.Hr;
import grad.nxu.recruitsystem.dto.User;
import grad.nxu.recruitsystem.vo.BiographicalNotesVO;
import grad.nxu.recruitsystem.vo.JobApplicationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HAPPY
 * @description 针对表【hr】的数据库操作Mapper
 * @createDate 2023-03-09 22:59:06
 * @Entity grad.nxu.recruitsystem.domain.Hr
 */
@Mapper
public interface HrMapper extends BaseMapper<Hr> {

    User login(User hr);

    boolean modifyPassword(String email, String password);

    List<JobApplicationVO> selectAll(Integer companyId, Integer pageSize, Integer pageNumber);

    List<JobApplicationVO> selectAllByAge(Integer age, Integer companyId, Integer pageSize, Integer pageNumber);

    List<JobApplicationVO> selectAllByGender(String gender, Integer companyId, Integer pageSize, Integer pageNumber);

    BiographicalNotesVO selectOneByBiographicalNoteId(@Param("biographicalId") Integer biographicalId);
}





